package com.example.demo.entity.pojo.develop;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.common.entity.pojo.BaseEntityPoJo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lzy
 * @date 2020-09-09 17:28:01
 */
@Data
@TableName("bom")
public class DevelopBomPoJo extends BaseEntityPoJo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long companyId;
    /**
     * $column.comments
     */
    private String companyName;
    /**
     * $column.comments
     */
    private String name;
    /**
     * $column.comments
     */
    private String spec;
    /**
     * $column.comments
     */
    private String code;
    /**
     * $column.comments
     */
    private Long createId;
    /**
     * $column.comments
     */
    private String createName;
    /**
     * 默认删除false
     */
    private Boolean deleteFlag = false;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "delete_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "删除时间")
    @ExcelIgnore
    private Date deleteTime;

}
